package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@TableName("order")
@Data
public class Order extends BaseEntity implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private static final long serialVersionUID =1L;
    private String userName;//用户名
    private String nickName;//用户卡号
//    private Integer productId;
    private String orderNum;//订单编号:时间+产品id+用户id
    private String cover;//产品封面
    private Integer price;//产品单价
    private String productName;//产品名称
    private Integer number;//购买数量
    private String shipAddress; //发货地址
    private String deliveryAddress; //收货地址
    private String userPhone;//用户手机号
    private Integer totalPrice;//总价

}
